Physical and chemical aspects at the interface and in the bulk of CuInSe2-based thin-film photovoltaics.