The effects of galaxy shape and rotation on the X-ray haloes of early-type galaxies - II. Numerical simulations