Marine renewable energy conversion: Grid and off-grid modeling, design and operation