Longitudinal End Effects in a Linear Wave Power Generator