North Charleston buys former Naval Hospital