Phase control of the spin-triplet state in S/F/S Josephson junctions