OPTIMAL PLANNING AND DESIGNING OF MICROGRID SYSTEMS WITH HYBRID