ORTEGA: An Efficient and Flexible Software Fault Tolerance Architecture for Real-Time Control Systems