Crossing Probabilities for Diffusion Processes with Piecewise Continuous Boundaries