A procedure for the design of snowflake magnetic configurations in tokamaks