Large-scale magnetic-field structure in the spiral galaxy M83