The mechanics of ribbons and Möbius bands