From means-tested programs to Universal Basic Income - The role of endogenous participation in transfer programs