Exploiting the composite character of Rydberg atoms for cold-atom trapping