Droplet size distribution in sprays based on maximization of entropy generation