First-principles studies of the structural and electronic properties of the C14 Laves phase XCr2 (X = Ti, Zr, Nb, Hf and Ta)