Gate‐Controlled BP–WSe2 Heterojunction Diode for Logic Rectifiers and Logic Optoelectronics | Synapse