An Efficient Hybrid Swarm Intelligence-Gradient Optimization Method for Complex Time Green's Functions of Multilayer Media