Optical spectroscopy of oriented molecules