Intrinsic electronic excitations and impurity luminescent centres in NaMgF3 and MgF2 doped with Yb2+