How is hypothyroidism diagnosed?