why are minerals found near volcanoes?