Marine smart grid