Analysis of AC losses in the EAST superconducting magnets using the 4C code