A coherent kinetic model of sensing and response in halobacterium salinarium phototaxis based on the mechanism of flagellar motor switching