Magnetostatic multipoles in Cartesian coordinates