Text this: An algorithm for selecting the parameters of a supercapacitor as part of an energy storage system of an electrical complex in case of voltage dips