Wavefront metrology for coherent hard X-rays by scanning a microsphere.