Multiphoton ionization of molecules in selectively excited rovibrational states