Gata6, Nanog and Erk signaling control cell fate in the inner cell mass through a tristable regulatory network