Microstructure, growth mechanisms and electro-optical properties of heteroepitaxial GaN layers on sapphire (0001) substrates