Optical, structural, and electrical properties of Mg2NiH4 thin films in situ grown by activated reactive evaporation