Resistance computation of generalized decorated square and simple cubic network lattices