Text this: Optical and electrical properties of NiO for possible dielectric applications