Optical properties of high-pressure metallic phases of Si and Ge