Embedded structure design of nanocrystalline soft magnetic alloy cores for high-power synchrotron rf cavities: Power density redistribution and thermal optimization