Synthesis and characterization of AgInSe2 for application in thin film solar cells