Generation of regular factorial designs