Energy, metaphysics, and space: Ernst Mach's interpretation of energy conservation as the principle of causality