Conservative People’s Party and populist Vox on course to secure parliamentary majority in election that ends eight years of Socialist rule