Theory of passive mode-locking of CW dye lasers with contacted and non-contacted absorbers