Limits of complex integrals and non-archimedean geometry