First-principles interpretation of scanning tunneling microscopy applied to transition-metal surfaces : Buried CuIr/Cu(001) surface alloys