Local cone approximations in optimization