The interstellar medium and the glacial eras during the Pleistocene