The determination of optical constants from reflection data by application of the Newton-Raphson method to the Fresnel equations