Discretization Error Estimation Using Method Of Nearby Problems: One-Dimensional Cases