Thermohaline forcing of eastern boundary currents: With application to the circulation off the west coast of Australia