Sharp error estimates for target measure diffusion maps with applications to the committor problem