Design and optimization of a hospital drug distribution system