Characterization and Optimization of an Image Charge Detector for the Measurement of Martian Dust