Generation of stimuli for testing spatial skills, including mental rotation tasks