Investigations on the structural, optical and magnetic properties of nanostructured cerium oxide in pure and doped forms and its polymer nanocomposites