Model based optimization of the control strategy of a gasifier coupled with a spark ignition engine in a biomass powered cogeneration system