Photodynamic control using field optimized initial state: A mechanistic investigation of selective control with application to IBr and HI photodissociation