High-precision lateral distortion correction in coherence scanning interferometry using an arbitrary surface