SAT Encodings of the Stable Marriage Problem with Ties and Incomplete Lists