Transferable ionic simulation models from ab initio calculations