What year was Bern occupied by French troops