General method for determining the droplet size distribution in emulsion systems