Magnitude 5 earthquake hits western Iran