A comparative study of electrochemical and optical properties of rhenium deposited on gold and platinum