The Star Formation History of Galaxies from Infrared Observations