The Role of Intelligent Metasurfaces in Smart Electromagnetic Environments