First-principles study of electronic and dynamical properties of AuAl2