Studies of evolved stars. IV. Band strength ratios as indicators of mixing in M, MS, and S stars.