MK Dons secured promotion to the Championship with a commanding victory over relegated Yeovil Town, as rivals Preston suffered defeat at Colchester.