Generalizations of the restriction theorem for multiplier ideals