Photodissociation measurement of rovibrational energies and populations of molecules in fast beams