German prosecutors have named the man suspected of carrying out a knife attack at a festival that killed three people and injured eight.