Diffractive optical element-based profilometer for surface inspection