Surface structure and anchoring properties of modified self-assembled monolayers