Terpolymers as precursors for CuO nanoparticles synthesis