The role of triploid hybrids in the evolutionary dynamics of mixed-ploidy populations