Multifragmentation of toroidal and bubble nuclei within the BUU approach