Use of in situ ellipsometry to observe phase transitions during boron nitride thin film deposition