Spain have qualified for the final of the European Under-21 Championships courtesy of a 3-1 extra-time win over Belarus - but they were made to fight all the way to secure their place in Saturday's showpiece.