Development and characterization of a charge-coupled device detection system for ion microscopy