The magnetic translation group for a finite system and the Born?Karman boundary condition