Microstructure dynamics of rechargeable battery materials studied by advanced transmission electron microscopy