diagnosing stomach problems