Singularities of noncommutative surfaces