Optimization of diatomic state mixing in diatomics‐in‐molecules theory: The CHn potential‐energy surfaces