Studies of the static field homogeneity artefacts induced by the diamagnetism of HTS coils and solution to avoid them