Morphology, mechanical properties and viability of encapsulated cells