Optimizing the interaction geometry of inverse Compton scattering x-ray sources