Electromagnetic and Thermal Phenomena Modeling of Electrical Discharges in Liquids