Lattice physics calculations using the embedded self-shielding method in Polaris, Part I: Methods and implementation. (January 2021)