Catalan election campaign ends in key vote for Spain