Modeling the Integration of Marine Energy into Microgrids