Self-similar compressible turbulent boundary layers with pressure gradients. Part 2. Self-similarity analysis of the outer layer