Magneto-optical trapping forces for atoms and molecules with complex level structures