Effective field theories and ab initio calculations of nuclei