Structural variations in (001)-oriented layered lead halide perovskites, templated by 1,2,4-triazolium.