DIGITAL CONTROL OF A BIDIRECTIONAL CONVERTER FOR AN ENERGY STORAGE