Efficiency through energy management in the smart factory