Controllable modulation of the electronic properties of graphene and silicene by interface engineering and pressure