Mechanisms for generating toroidal rotation in tokamaks without external momentum input