Macroscopic optical constants of a cloud of randomly oriented nonspherical scatterers