Arian Foster to work out for Dolphins and Lions