In situ aberration measurement method using a phase-shift ring mask