Direct numerical simulation of flow past a sphere at a Reynolds number between 500 and 1000 in compressible flows