Calibration of a commercial electron microscope with a grating replica to an accuracy of better than 1%