Text this: Electrosynthesized NiS2 thin films and their optical and semiconductor studies