Text this: Unified modeling of Hartmann and Talbot wavefront sensors for EUV to soft X-ray applications.