A gate-tunable single-molecule diode