Structure of Two‐Dimensional Magnetostatic Equilibria in the Presence of Gravity