Cohomology of partial smash products