Modeling and correction of intrinsic nonlinear distortion in polygon-mirror confocal microscopy