Derailments close Australian rail routes