Competitiveness analysis of state legislative elections