The state’s second-largest hospital organization has signed a letter of intent with Joslin Diabetes Center to explore acquiring the specialty diabetes hospital.