Level-Crossing Problems and Inverse Gaussian Distributions