Model error estimation: Its application to chemical data assimilation