Flexible Design and Implementation of Cognitive Models for Predicting Pilot Errors in Cockpit Design