Polymer crystallization confined in one, two, or three dimensions