Structural, electronic, elastic, and thermal properties of CaNiH3 perovskite obtained from first-principles calculations