Miniband engineering and topological phase transitions in topological-insulator–normal-insulator superlattices