A1GaN metal-semiconductor-metal UV photodetectors