Reflective binary amplitude grating for soft x-ray shearing and Hartmann wavefront sensing.