Computation of unsteady separated flows over airfoils using a finite element method