Enable Newell's demag tensor computation

Enable Newell's formluation for calculating demagnetizing tensor, with support for PBC