Prove that the sums of the squares of the distances from any point in space to opposite vertices of a rectangle are equal to each other.