Theory of multi-spar and multi-rib wing structures