Polymers having sulfur in the main chain, with or without nitrogen, oxygen or carbon only