Photon catalysis and quantum state engineering