Selective Engineering for Preparing Entangled Steady States in Cavity QED Setup