Detecting two components of magnetization in magnetic layer structures by use of a photoelastic modulator