Giant thermopower and figure of merit in single-molecule devices