Optimization of the distribution network operation by integration of distributed energy resources and participation of active elements : doctoral thesis