Systemic approach for modeling a generic smart grid