Infrared studies of high temperature superconductors