Coupled orbit–attitude dynamics and relative state estimation of spacecraft near small Solar System bodies