Tunable THz metamaterial based on a periodic array of graphene