Doctors, dairy farmers, failed novelists — how authors’ fictional selves take on an identity all their own, distinct from their creators