Self-assembled cotton-like copper–molybdenum sulfide and phosphide as a bifunctional electrode for green energy storage and production