Pittsburgh synagogue shooter led a deeply unstable life dominated by mental illness, psychologist testifies