What steps did the ming dynasty take to restore traditional chinese culture and remove all foreign influences associated with mongol rule?