Traveling-wave tubes and backward-wave oscillators with weak external magnetic field