Text this: Wigner function method for the Gibbons–Hawking and the Unruh effect