In situ synthesis of Co3O4/graphene nanocomposite material for lithium-ion batteries and supercapacitors with high capacity and supercapacitance