Ricky Rubio agrees to three-year deal with Suns