Designed nonlocal pseudopotentials for enhanced transferability