Explicit formulation of Kuhn-Tucker necessary conditions in structural optimization