Mechanics of magneto-active polymers