Maximal- and minimal-height distributions of fluctuating interfaces