SELF SWITCHING METHOD OF ENERGY STORAGE OPERATION MODE OF MICROGRID