The physics of glaciers