Relating the 3D electrode morphology to Li-ion battery performance; a case for LiFePO4