A strategy for the design of skyrmion racetrack memories