Molecular exchange‐correlation Kohn–Sham potential and energy density from ab initio first‐ and second‐order density matrices: Examples for XH (X=Li, B, F)