How are lactose intolerance and dairy allergies diagnosed?