Roger Federer bids teary farewell to tennis career, longtime rival Nadal weeps too