how long do bacterial infections last