The CARMENES search for exoplanets around M dwarfs. Two terrestrial planets orbiting G264-012 and one terrestrial planet orbiting Gl 393