SpinDynamica: Symbolic and numerical magnetic resonance in a Mathematica environment