Ternary quantum dots for solar cell applications