A convolution integral for the resolvent of the sum of two commuting operators