Ice-marginal thrusting of drift and bedrock: thermal regime, subglacial aquifers, and glacial surges