how does ertapenem work against bacterial infections