Phase transitions in a LiMn2O4 nanowire battery observed by operando electron microscopy.