Spain ends 2012 with the biggest jobless rate in its history