Geodynamic evolution of the northern and central Andes during early to middle Mesozoic times: a Tethyan model