Sexual selection paves the road to sexual isolation during ecological speciation