Generalization Guarantees for Multi-item Profit Maximization: Pricing, Auctions, and Randomized Mechanisms