The Influence of Gravity and Magnetic Fields on Brine Formation and Habitability across the Solar System