Spacetime mappings of the Brown–York quasilocal energy