Nonlocal Two-Dimensional Yang-Mills and Generalized Yang-Mills Theories