Simple derivation of general Fierz-type identities