Characterizations of strongly countable-dimensional and locally finite-dimensional spaces