Independence of σ-algebras via π-systems