Ab initio calculations of exciton radiative lifetimes in bulk crystals, nanostructures, and molecules