A Connection Between Score Matching and Local Intrinsic Dimension