Two-photon partial widths of tensor mesons