Studies of a hollow cathode discharge using mass spectrometry and electrostatic probe techniques