Cation sensing by patterned self-assembled monolayers on gold