Density-dependent effects of prey defenses and predator offenses.