Some results on separability and pure inseparability for algebras over commutative rings