Forecasting the solar cycle with genetic algorithms