Singularities of algebraic surfaces and characteristic numbers