Recovering low-rank structure from multiple networks with unknown edge distributions