Optical and structural properties of BGaN layers grown on different substrates