Time-Based Risk-Informed Safety Margins: Concepts and Application to Heterogeneous Systems