Interface engineering in chalcopyrite thin film solar devices