At the time of his house arrest, Napoleon was serving with what military entity