Transistor device and method of manufacturing such a device