Optimal Allocation of Resources in Repair and Maintenance of Bridge Structures