Optimal resource allocation for seismic retrofitting of bridges in transportation networks