Volcano-ice interaction on Earth and Mars