Competing soft phonon modes at the charge-density-wave transitions in DyTe3