Calculating infrared spectra of proteins and other organic molecules based on normal modes