Electronic structure of semiconductor nanostructures: A modified localization landscape theory