Magnitude 5 earthquake rattles northwestern Iran