Spain's traditional parties lose out in local elections