Complex spatial structures in biomedical images: investigating the interaction of cells with their microenvironment