How Quantifying the Shape of Stories Predicts Their Success