Partly lithiated graphitic carbon foam as 3D porous current collectors for dendrite-free lithium metal anodes