Evolution of migration under kin selection and local adaptation