Construction of the Value Function and Optimal Rules in Optimal Stopping of One-Dimensional Diffusions