Optical path difference microscopy with a Shack-Hartmann wavefront sensor