Genetic predisposition for beta cell fragility underlies type 1 and type 2 diabetes