Residual strain dependence of optical characteristics in GaN layers grown on (0001) sapphire substrates