Motion control of artificial bacterial flagella