A discrepancy principle for Poisson data