Determination of the lifetime of excited compound nuclei in fission using the shadow effect