Determination of the temperature of a disassembling nucleus from fragment yields