Glacial influence on caldera-forming eruptions