Spatially varying aberration calibration using a pair of matched periodic pinhole array masks