why is the ring of fire dotted with volcanoes