Voting has ended in several key US states, as Donald Trump and Kamala Harris vie to the be next American president.