Boscovich, the discovery of Uranus and his inclination to theoretical astronomy