Enhancing the charging process to address electrical stability and efficiency for EV charging infrastructure