An Analytical Nonlinear Theory of Thin Film Rupture and Its Application to Wetting Films