Decoupled-natural-dynamics model for the relative motion of two spacecraft without and with J2 perturbation