Kinetics of phase boundaries with edges and junctions in a three-dimensional multi-phase body