A theoretical investigation of size-dependent composition and stresses in nanowires and nanotubes of ceria