Collapse of polyelectrolyte networks induced by their interaction with an oppositely charged surfactant. Theory