Dynamics of swine influenza model with optimal control