Exploitation of graphene as HIS and RIS for devices in the MW and THz frequency ranges