Scanning tunneling and scanning electron microscopy investigations of nonuniform surfaces