Passive and Active Metasurfaces Enabling New Functionalities for Smart EM Environments