Heitler-Ma treatment of two-photon spontaneous emission and resonance fluorescence