Effects of spatial nonuniformity of superconducting-tunnel-junction ion detectors on mass spectroscopy