Effect of electric field on the band structure of graphene/boron nitride and boron nitride/boron nitride bilayers