Black Hole Mergers as Probes of Structure Formation