Leveraging LLMs to Automate Energy-Aware Refactoring of Parallel Scientific Codes