Knowledge-based approach to risk analysis in the customs domain