The infrared spectrum of liquid and solid hydrogen