Modeling genetic algorithm dynamics for OneMax and deceptive functions