Distributed Interior Point Methods for Optimization in Energy Networks