Temperature-induced local moments in MnSi and FeSi