Its knowledge and uses spread from China through the Middle East to medieval Europe in the 13th century, where the first water powered paper mills were built. Which middle eastern city did the papermaking process to Europe from?