Before becoming a military leader, which profession did Napoleon initially train for during his early years in France?