how are rare diseases diagnosed