Orthogonality and the Perey factor in knockout reactions induced by electromagnetic probes