Correlating and controlling surface structure and electronic structure in ruthenate oxides