Preparation of compounds having a 4-thia-1-azabicyclo [3.2.0] heptane ring system