Accurate modeling of acousto-optic interaction in lossy multilayer structures