A quantitative definition of organismality and its application to lichen