Prefabricated compartment with integrated energy distribution and storage for transformer substation