The thermal and geochemical structure of geothermal and epithermal systems; a framework for interpreting fluid inclusion data