Phelps preparing to compete in last Olympics