Force balances in planetary cores and atmospheres