Iceland has declared a state of emergency after a series of earthquakes raised fears of a volcanic eruption.