Structural and optical properties of GaN-based nanocrystalline thin films