Electromechanical study and energy upgrade of an industrial building for its adaptation to a new usage