Ab initio studies of the structural, elastic, electronic and optical properties of the Ni3In intermetallic compound