Symmetry in past and future and generalized thermodynamic potentials for Markov processes