Imaging profiles of light intensity in the near field: applications to phase-shift photolithography