On the zeros of Bessel type functions and applications to exact controllability problems