A fictitious domain solver for computation of the effective properties of material distributions generated by iterated affine maps