Spectrophotometric studies on technetium and rhenium