Confidence intervals and upper bounds for small signals in the presence of background noise