Optical Gain and Spatial Resolution in a Broad‐Area Phototransistor