Optical measurement of surface topographies with transparent coatings