Smart DC Power Management System Based on Software-Configurable Power Modules