From local to global modeling for characterizing calcium dynamics and their effects on electrical activity and exocytosis in excitable cells