A mass spectrometer for plasma diagnostics. Measurements of ion translational temperature, polarization and velocity effects