A FETI-DP method for the analysis of finite periodic metamaterial arrays