Four teenagers have been charged after fires were set within an old hospital in East Lothian.