Accurate ab initio quartic force fields for borane and BeH2