Obama voices optimism in speech to set 2016 tone