Trace of BV-functions on irregular subsets