Chemoreception and chemotaxis of a three-sphere swimmer