An analytical model for optimizing the combination of energy sources in a single power transmission network