Quantum Phase Transitions and Matrix Product States in Spin Ladders