Enhancing Automated Loop Invariant Generation for Complex Programs with Large Language Models