Similar Items: A Sorted Semantic Framework for Applied Process Calculi