Intrinsic topological phases in Mn2Bi2Te5 tuned by the layer magnetization