Exponential stabilization of wave equation with acoustic boundary conditions and its application to memory type boundary