Photorefractive optical lock-in detector.