Catalan separatists agree to support a left-wing government in Spain in exchange for amnesty