Layered growth of boron nitride thin films