Shack-Hartmann wavefront sensor