Stability and bifurcations of symmetric periodic orbits