Structure of thioaromatic self-assembled monolayers on gold and silver