How Ethical Should AI Be? How AI Alignment Shapes the Risk Preferences of LLMs