A coronal magnetic field model with horizontal volume and sheet currents