Velocity transformation for compressible wall-bounded turbulent flows with and without heat transfer