Microenvironmental influences of apoptosis in vivo and in vitro