Surface structure and bonding in the strongly correlated metal oxides NiO and UO2