GaN-based optoelectronic devices on sapphire and Si substrates