Lochte, Phelps qualify for London in 400m IM