The photochemistry of methane in the atmosphere of Triton