Who purchased the leading church office in Germany?