A time-dependent Green's function approach to study the transient phenomena in metamaterial lens focusing