Continuous-time mean–variance asset–liability management with endogenous liabilities