Index Theory for Locally Compact Noncommutative Geometries