MESSI: the METIS instrument software simulator