Synthesis and analysis of ZnO and CdSe nanoparticles