Measurement of temperature with optical fibers using transmission intensity effects