Modified weak measurements for the detection of the photonic spin Hall effect