Turkish PM says hopeful of finding common ground with EU on migrants