The interaction between an internal gravity wave and the planetary boundary layer. Part I: The linear analysis