A Schottky type GaN based UV photodetector with atomic layer deposited TiN thin film as electrodes