Power Generation Enhancement through Latching Control for a Sliding Magnet-Based Wave Energy Converter