Cosmological radar ranging in an expanding universe