Design and Testing of a Linear Generator for Wave Energy Applications