From ab initio quantum chemistry to molecular dynamics: The delicate case of hydrogen bonding in ammonia