Functional Metasurfaces towards Applications: Optical Modulation, Integrated Photonics, and Biomolecular Sensing