Performance analysis of a Pt/n-GaN Schottky barrier UV detector