On square roots of class C^m of nonnegative functions of one variable