A Novel Multiport Hybrid Wave Energy System for Grid-Connected and Off-Grid Applications