Slender body theory and optimization procedures for transonic lifting wing bodies