Determination of stress versus strain relationship and other thermomechanical properties of thin films