On glaciations and their causes