Lochte qualifies with best time in 400-meter individual, freestyle