Generic Dynamic Modelling for Grid Integration of Ocean Energy Devices