Multilevel neural simulation-based inference