Nondestructive, quantitative viability analysis of 3D tissue cultures using machine learning image segmentation