Photochemical growth of GaN and AlN on sapphire (0001) and GaAs(100)