Component (edge) connectivity of pancake graphs