Precision metrology: from bulk optics towards metasurface optics