Triple-deck solutions for viscous supersonic and hypersonic flow past corners