Tunable open-circuit voltage in ternary organic solar cells