How is hepatitis B diagnosed?