Automatic ionisation detector and hydrocarbon analyser