Efficient Design Space Exploration and Optimization for Electrical Architectures