Optimality conditions and duality for arcwise connected interval optimization problems