Study finds causes of CF-related diabetes