Tailoring Electronic Properties of Materials for Applications in Photovoltaics