On optical properties of nonspherical inhomogeneous particles