Optimal control and stability analysis of an epidemic model with education campaign and treatment