Cost and availability improvements for fault-tolerant systems through optimal load-sharing policies