Whether you’re writing a thank-you or a sympathy card, use these tips to pen the right sentiment.