Publisher version (open access) of The capacity of a class of multi-way relay channels