Control Optimization and Adaptive Tuning of Droop Controlled Systems for DC Bus Stability via Terminal Impedance Shaping