The earthquake had a magnitude of 8. How long did the main tremor last?