A spatially nonlinear generalised actuator disk model for the simulation of horizontal axis wind and tidal turbines