Theory and simulations of angular momentum transfer from swift electrons to spherical nanoparticles in scanning transmission electron microscopy