Fiber-optic liquid level sensing by temperature profiling with an FBG array