Controllable step motors and rectifiers of magnetic flux quanta using periodic arrays of asymmetric pinning defects