Post-AGB stars in the LMC and SMC