EChOSim: The exoplanet characterisation observatory software simulator