Text this: Two-stage frequency regulation for wind turbines with adaptive coefficients and optimized power trajectory