Phase transitions during formation of Ag nanoparticles on In2S3 precursor layers