Thin films of AgIn5(S/Se)8 prepared in a two stage process