Three-dimensional magnetic and abundance mapping of the cool Ap star HD 24712 . I. Spectropolarimetric observations in all four Stokes parameters