State diagram of a three-sphere microswimmer in a channel