Subgroup-permutability and affine planes