Optimal seismic retrofitting of existing buildings considering environmental impact