Large-scale anisotropies of the cosmic background radiation in generalized inflationary cosmologies