Adaptive photodetector based on nonsteady-state photo-EMF for the detection of elastic deformations and stresses