Republican election wave hits state houses