GEOMETRY-INDEPENDENT DETERMINATION OF RADIAL DENSITY DISTRIBUTIONS IN MOLECULAR CLOUD CORES AND OTHER ASTRONOMICAL OBJECTS