Vortex ratchet effect in a niobium film with spacing-graded density of pinning sites