Polymorphism and optical properties in [NH4][InSe2]