Ainsworth Lumber closes Minn. plants permanently