An inverse dynamics approach to the guidance of spacecraft in close proximity of tumbling debris