Analytical Calculation of Transient Current From an Inverter-Interfaced Renewable Energy