Simulating X-ray observations of galaxy clusters with the X-ray Integral Field Unit onboard the Athena mission