Unaffiliated voters, Latinos played key role in outcome of 2022 midterm election