Rosenthal: A’s sign O’Flaherty to 2-year deal after Tommy John surgery