Dependence of dark current and photoresponse characteristics on polarization charge density for GaN-based avalanche photodiodes