Q-factor optimization for TM-like modes in pillar-based photonic crystal cavities with planar slot waveguides