Direct-conversion flat-panel imager with avalanche gain: feasibility investigation for HARP-AMFPI.