Characterization of traces of the weighted Sobolev space $W^{1,p}(\Omega,d_M^\epsilon)$ on $M$