A theoretical study of a sulfur impurity in diamond