A Theoretical Framework for Riskā€“Cost-Optimized Maintenance Strategy for Structures