Ab initio calculations for properties of MAX phases Ti2InC, Zr2InC, and Hf2InC