Band gaps in graphene via periodic electrostatic gating