Nonsimilar Solution for Laminar and Turbulent Boundary-Layer Flows over Ablating Surfaces