Theory of far-infrared ATR from surface polaritons in an n-i-p-i superlattice