Polls close, counting begins in Spain's snap elections