after the napoleon's empire downfall bavaria joined the german confederation