Dynamical reference frames in the planetary and earth-moon systems