One-pot synthesis of cuprous oxide-reduced graphene oxide nanocomposite with enhanced photocatalytic and electrocatalytic performance