An Analytic Solution to the 3D CSC Dubins Path Problem