Network Reconstruction for SIS Epidemics in Heterogeneous Populations