Preparation of compounds having a 5-thia-1-azabicyclo [4.2.0] octane ring system