5.8 earthquake jolts parts of country