Eight hurt as magnitude 5.1 quake hits western Iran