Chemotactic cell trapping in controlled alternating gradient fields