Text this: Investigation of Optimal PV Allocation to Minimize System Losses and Improve Voltage Stability for Distribution and Transmission Networks Using MATLAB and DigSilent