When you’re unhappy at work, it might be time to go. Here’s how to write a resignation letter without burning bridges, including samples and formatting.