Exact X-wave solutions of the hyperbolic nonlinear Schrödinger equation with a supporting potential