A comparative study of Brinkman penalization and direct-forcing immersed boundary methods for compressible viscous flows