Germany's prosperity depends on EU's success, chancellor says