An asymptotic estimate for heights of algebraic subspaces