Quadratic Chabauty for integral points and p-adic heights on even degree hyperelliptic curves