Electronic properties of nanocrystalline BN and AlN films deposited on Si and GaAs—a comparison