Dependence of oxide surface structure on surface topology and local chemical bonding