Deformations from Octahedral Geometry in d4 Transition-Metal Complexes