Optimizing an acoustic liner by automatic differentiation of a compressible flow solver