Principles and applications of metasurfaces with phase modulation