Optical constants of copper and nickel as a function of temperature