The evolutionary and ecological role of heat shock proteins