Three-Dimensional Electromagnetic Field Due to Electric Discharge by an Analytical Approach