Measurement of the thermo-optic coefficient in bulk and waveguiding structures by multiple-beam interferometry