Obama and Karzai agree to speed up Afghan military transition