Fractal-based exponential distribution of urban density and self-affine fractal forms of cities