Integral method of solution for compressible laminar boundary layers and applications