Dilatometer for measurements of linear dimension variations under the effects of temperature, magnetic field and mechanical stress