Google offered to help Samsung with Apple patent battle costs