Border Collision bifurcations in Three-Dimensional Piecewise Smooth Systems