On the effect of stoichiometry and oxygen on the properties of CuInSe2 thin films and devices