First order cone approximations and necessary optimality conditions