Similar Items: A General Framework for Automated Accurate Calculation of b-Matrix (Auto-b) in Diffusion MRI Pulse Sequences