High spectral response of self-driven GaN-based detectors by controlling the contact barrier height