New type of metal-resistive layer-silicon avalanche detectors for visible and UV light detection