Scaling Laws from the Data Manifold Dimension