Dissipation function in turbulent plane Poiseuille and Couette flows subject to spanwise rotations