What are the main types of Swiss residence permits, and what are the steps to obtain long-term residency?