Spontaneous symmetry breaking in photonic lattices: Theory and experiment