Polling stations close in Spain with anti-austerity Podemos party predicted to come second ahead of the Socialists.