A first-principles study of the structural, elastic, electronic and phonon properties of LiMgP and LiMgAs in the α, β and γ phases