A theoretical study of the stability of Zr-Al-C and Ti-Al-C MAX phases