Reconnexion of vortex and magnetic tubes subject to an imposed strain: An approach by perturbation expansion