A general algorithm for magnetic resonance imaging simulation: a versatile tool to collect information about imaging artifacts and new acquisition techniques