Sol-gel-derived gallium nitride thin films for ultraviolet photodetection