Water lines and multiple ring and gap structures of the protoplanetary disk around HD 163296