MRS detectors with high gain for registration of weak visible and UV light fluxes