Electronic and crystal structures of nanolaminate yttrium aluminum carbide YAl3C3