Multiphysics analysis of electrochemical and electromagnetic system addressing lithium-ion battery and permanent magnet motor