Stocks, euro rise on Greek bailout optimism