The collineation groups of the finite affine and projective planes with four lines through each point