Study of separated flow and heat transfer in two-dimensional channels with wavy walls