Biofilm prevention in the generator of a direct drive wave energy converter