Electrochemical detection of Cd2+ ions by a self-assembled monolayer of 1,9-nonanedithiol on gold