Design, Synthesis, and Pharmacological Properties of New Heteroarylpyridine/Heteroarylpyrimidine Derivatives as CB2 Cannabinoid Receptor Partial Agonists