Neural-network parameterization of subgrid momentum transport in the atmosphere