Implements fresnel equation for reflection/refraction