Optical investigation of high-temperature superconductors