Scaling of excitations in dimerized and frustrated spin-1/2 chains