Active wavefronts control with graphene-functionalized terahertz Metasurfaces