Fermi-surface transformation across the pseudogap critical point of the cuprate superconductor La$_{1.6-x}$Nd$_{0.4}$Sr$_{x}$CuO$_4$