Theoretical investigation of the effect of hexagonal boron nitride on perfect absorption in infrared regime