Electrochemical synthesis and photocatalytic property of cuprous oxide nanoparticles