core.z: designed resistivity and phase as property, which prevents accidental setting of those values

Signed-off-by: LK <LK@uni>
core.z: added calculation of norm error

Signed-off-by: LK <LK@uni>