Crystallization of Homopolymers Confined in Spherical or Cylindrical Nanodomains