Reinforcement during ecological speciation