Dynamic response and stability of a flexible foil with special emphasis on the flutter mechanism via the reduced-order model