Cuntz-Pimsner algebras of twisted tensor products of correspondences