Americans more optimistic about economy