Palmer, Mass., to sign agreement with Mohegan Sun