Electronic Excitations, Vibrational Spectra, and Chemistry in Nitromethane and HMX