A reconstruction algorithm of magnetoacoustic tomography with magnetic induction for an acoustically inhomogeneous