A description of the topology on the dual spaces of certain locally compact groups