Superconductivity of metal nitride chloride β-MNCl (M = Zr, Hf) with rare-earth metal RE (RE = Eu, Yb) doped by intercalation