how does ampicillin kill bacteria