High-resolution shock-capturing schemes for inviscid and viscous hypersonic flows