Nonconvex Homogeneous Optimization: a General Framework and Optimality Conditions of First and Second-Order uri icon