Chemical knowledge-informed framework for privacy-aware retrosynthesis learning