Investigation of impact of pH and rare earth metal dopant concentration on structural, optical and thermal properties of CuO nanoparticles