Flux-based method of characteristics for contaminant transport in flowing groundwater