What material did paper not replace upon its invention