The treatment of singularities of partial differential equations by relaxation methods