The Amati relation in the fireshell model