Two-photon excitation of the tensor mesonf 0(1270)