Characterizing entanglement sources