who abolished the monarchy and declared france a republic