Optical properties of GaN with Ga and N polarity