Self-consistent calculations of the optical properties of GaN quantum dots