Thermal versus mechanical unfolding of ubiquitin