Securing LLM-Generated Embedded Firmware through AI Agent-Driven Validation and Patching