Integral Schur–Weyl duality for partition algebras