Statistical-Mechanical Analysis of the First-Order Wetting Transition in Polymer Solutions