Ni and Ag electrodes for magnesium silicide based thermoelectric generators