derive the formula for the distance between a point and a plane in 3D space