Effects of Finite Density on Chiral Domain-Wall in Neutron and Quark Matter