Sampling and resolution characteristics in reduced order models of shallow water equations: Intrusive vs nonintrusive