Jonny Bairstow says he travelled to India as he is determined to regain his red-ball contract with the England cricket team.