Source Optimization In Abstract Function Spaces For Maximizing Distinguishability: Applications To The Optical Tomography Inverse Problem