Spatial Modulation and Thermal-Induced Spin Phase Transition on the Negative Thermal Expansion of ScF3 with Metal Dopants