Linear Alignment: A Closed-form Solution for Aligning Human Preferences without Tuning and Feedback