Interconnected porous carbon with tunable pore size as a model substrate to confine LiFePO4 cathode material for energy storage