A temperature-dependent effective potential explains CO binding to myoglobin