Scotland's main pro-independence party has captured a number of seats in a crucial parliamentary election that could determine the future of the United Kingdom.