Israel's security hinges on 2-state solution: German president