Optimal allocation of resources in repair and maintenance of bridge structures