Control of spin waves using charge and heat flows