Mathematical analysis of hepatitis B epidemic model with optimal control