Text this: Formation, habitability, and detection of extrasolar moons