The effects of type 2 diabetes associated risk loci on pancreatic beta cell function