Logic Device Agents: Smart and Highly Reusable Components in Industrial Automation Systems