Blackboard Rules for Coordinating Context-aware Applications in Mobile Ad Hoc Networks