Casimir invariants for the complete family of quasisimple orthogonal algebras