Many factors determine whether a job relocation is worth it