An Error-Detection and Self-Repairing Method for Dynamically and Partially Reconfigurable Systems