First-principles study of the structural and elastic properties of Cr2AlX (X=N, C) compounds