State agency awards $8 million in tax credits to rehabilitate historic buildings