Resonance ionization spectroscopy of HCO and DCO. I. The 3p 2Π Rydberg state