Scaling law of the giant Stark effect in boron nitride nanoribbons and nanotubes