Automated design of pulse sequences for magnetic resonance fingerprinting using physics-inspired optimization