Arizona beats Lions 38-10 to end 9-game skid