Risk based asset management of pipeline networks for gas and water