Rovibrational Cooling of Molecules by Optical Pumping