The local multiplicity problem for the Ginzburg-Rallis model and the generalized Shalika model