Anharmonic potential functions of polyatomic molecules