Gen Z, millennials more optimistic about finances than Gen X, boomers