Life inside a mental asylum can be pretty mad. But for female journalist Nellie Bly, it’s a reflection of her inner world