Australian shares end flat on China gloom