Simulation and modal analysis of transonic shock buffets on a NACA-0012 airfoil