Hydrogenated amorphous silicon detectors for particle detection, beam flux monitoring and dosimetry in high-dose radiation environment