The production of continuous electron spectra in collisions of heavy ions and atoms. I. molecular autoionisation