Single-molecule diodes with high rectification ratios through environmental control.