Lignin-assisted solid-phase synthesis of nano-CuO for a photocatalyst with excellent catalytic activity and high performance supercapacitor electrodes