Applying goal-oriented requirement engineering and refence architecture for microgrid systems