Structural optimization based on second-order approximations of functions and dual theory