Bid Shading by Win-Rate Estimation and Surplus Maximization