Macroscopic Properties of Inhomogeneous Material with Randomly Distributed Pores