Circumventing chemo-mechanical failure of Sn foil battery anode by grain refinement and elaborate porosity design