Units of ring spectra, orientations, and Thom spectra via rigid infinite loop space theory