Assimilation of spatially distributed water levels into a shallow-water flood model. Part I: Mathematical method and test case