Spin-orbit coupling and chaotic rotation for circumbinary bodies. Application to the small satellites of the Pluto-Charon system