Perfect state transfer, effective gates, and entanglement generation in engineered bosonic and fermionic networks