Lanczos potentials and a definition of gravitational entropy for perturbed Friedman–Lemaitre–Robertson–Walker spacetimes