Theory of space-charge-limited ballistic currents in nanostructures of different dimensionalities