Dipole-induced grating in a waveguide-coupled photonic crystal microcavity embedding a driven three-level emitter