A finite element formulation of the eigenvalue problem in lined ducts with flow