Application of the Monte Carlo method to anharmonic force constant calculations: The anharmonic potential functions of some nonlinear symmetrical triatomic molecules