German prosecutors have charged a suspected "Islamic State" extremist with murder in the stabbing rampage in Solingen that left three people dead.